import org.junit.jupiter.api.Test;

import java.util.Stack;

public class Test01 {
    @Test
    public void test(){
        Stack<String> stack = new Stack<>();
        stack.push("str1");
        stack.push("str2");
        stack.iterator().forEachRemaining(System.out::println);
    }
}
